package com.ttuproject.ttu.exception;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

/**
 * @Description: <br>
 * @CreateDate: Created in 2020/6/12 09:04 <br>
 * @Author: admin
 */
@Getter
@NoArgsConstructor
@AllArgsConstructor
public enum Advice {
    LOGIN_ERROR(500, "登录失败，请联系管理员"),
    LOGIN_SUCCESS(200, "登录成功，欢迎您"),
    REGISTER_SUCCESS(200, "恭喜您，注册成功"),
    REGISTER_ERROR(500,"注册失败，请重新注册"),
    INSUFFICIENT_PERMISSIONS(500,"对不起，您的权限不足，不能进行此操作"),
    UPDATE_ERROR(500, "更新用户信息失败，请重试"),
    UPDATE_SUCCESS(200, "更新用户信息成功"),
    LINKAGE_ERROR_1(500, "一级联动获取数据失败，请联系管理员"),
    LINKAGE_SUCCESS_1(200, "一级联动获取数据成功"),
    LINKAGE_ERROR_2(500, "二级联动获取数据失败，请联系管理员"),
    LINKAGE_SUCCESS_2(200, "二级联动获取数据成功"),
    LINKAGE_ERROR_3(500, "三级联动获取数据失败，请联系管理员"),
    LINKAGE_SUCCESS_3(200, "三级联动获取数据成功"),
    FAULT_CODE_SUCCESS(200, "故障码查询成功"),
    FAULT_CODE_ERROR(500, "故障码查询失败"),
    FAILURE_CAUSE_SUCCESS(200, "故障原因查询成功"),
    FAILURE_CAUSE_ERROR(500, "故障原因查询失败"),
    POLE_TRANSFORMER_AREA_SUCCESS(200, "杆变台区查询成功"),
    POLE_TRANSFORMER_AREA_ERROR(500, "杆变台区查询失败"),
    SUBSTATION_AREA_SUCCESS(200, "站变台区查询成功"),
    SUBSTATION_AREA_ERROR(500, "站变台区查询失败"),
    BOX_TRANSFORMER_STATION_SUCCESS(200, "箱变台区查询成功"),
    BOX_TRANSFORMER_STATION_ERROR(500, "箱变台区查询失败"),
    DISTRIBUTION_TRANSFORMER_AREA_SUCCESS(200, "配变台区查询成功"),
    DISTRIBUTION_TRANSFORMER_AREA_ERROR(500, "配变台区查询失败"),
    SELECT_DETAILEDROD_SUCCESS(200, "查看杆变详情成功"),
    SELECT_DETAILEDROD_ERROR(500, "查看杆变详情失败"),
    SELECT_DETAILED_DISTRIBUTION_SUCCESS(200, "查看配变详情成功"),
    SELECT_DETAILED_DISTRIBUTION_ERROR(500, "查看配变详情失败"),
    QUERY_GPS_SUCCESS(200, "经纬度数据获取成功"),
    QUERY_GPS_ERROR(500, "经纬度数据获取失败"),
    QUERY_STATION_SUCCESS(200, "查询台账数据成功"),
    QUERY_STATION_ERROR(500, "查询台账数据失败"),
    UPDATE_STATIONLIST_SUCCESS(200, "更新总表数据成功"),
    UPDATE_STATIONLIST_ERROR(500, "更新总表数据失败"),
    INSERT_STATIONLIST_SUCCESS(200, "新增台账数据成功"),
    INSERT_STATIONLIST_ERROR(500, "新增台账数据成功"),
    INSERT_WAR_SUCCESS(200, "新增故障码及解决方法成功"),
    INSERT_WAR_ERROR(500, "新增故障码及解决方法成功"),
    INSERT_CANNOT_EMPTY(500, "输入内容不能为空");

    private int code;
    private String msg;
}
